<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>productInfo生成小工具</title>
    <style type="text/css">
        body{text-align: center}
        div{
            display: inline-block;
            width: 90%;
            border:solid 1px #6BBE18;
            text-align: center;
            font-weight: bold;
        }
        span{
            display:block;
            text-align: center;
            margin: 30px 0 30px 0;
        }
        table{
            border-collapse: collapse;
            display: inline-block;
            text-align: center;
            margin: 0px 0 30px 0;
        }
        td, th {
            border: solid 2px #6BBE18;
            width: 300px;
        }
        tr{
            height: 40px;
        }
        .close{
            display: none;
        }

    </style>
    <script type="text/javascript">
        function control(a){
            var id = a.id + "_value";
            var value = document.getElementById(id);
            if(value.className == "" || value.className == null){
                value.className = "close";
                var input = value.getElementsByTagName("input");
                for(var i = 0 ; i < input.length ; i++){
                    input[i].required = false;
                }
            }else{
                value.className = "";
                var input = value.getElementsByTagName("input");
                for(var i = 0 ; i < input.length ; i++){
                    input[i].required = true;
                }
            }
        }
        function payController(a){
            var id = a.id + "_PAY";
            var value = document.getElementById(id);
            if(value.className == "" || value.className == null){
                value.className = "close";
                var input = value.getElementsByTagName("input");
                for(var i = 0 ; i < input.length ; i++){
                    input[i].required = false;
                }
            }else{
                value.className = "";
                var input = value.getElementsByTagName("input");
                if("WECHATOPEN" == a.value || "ZFBSHH" == a.value){
                    for(var i = 0 ; i < input.length ; i++){
                        input[i].required = true;
                    }
                }
            }
        }


    </script>
</head>
<body>
<form id="myForm" action="./CreateWithDraw.php" target="_blank">



    <div id="WITHDRAWMAP_PAY" class="">

        <span style="background: #6BBE18;margin: 0 0 30px 0;">提现</span>
        <table>
				<span>
			<input type="checkbox" name="WITHDRAWMAP[]" id="WITHDRAW_D0" value="WITHDRAW_D0" onclick="payController(this)">D0 提现&nbsp;
			<input type="checkbox" name="WITHDRAWMAP[]" id="WITHDRAW_D1" value="WITHDRAW_D1" onclick="payController(this)">D1 提现
			</span>
        </table>
        <div id="WITHDRAW_D0_PAY" class="close">
            <table>
                <span style="background: #6BBE18;margin: 0 0 30px 0;">DO提现</span>
                <tr>
                    <th>提现产品费率名称</th>
                    <th>费率类型</th>
                    <th>固定费率</th>
                    <th>比例费率</th>
                </tr>
                <tr>
                    <td>
                        <input type="checkbox" name="D0withdrawBankName[]" id="WITHDRAW_WORKDAY" value="WITHDRAW_WORKDAY">工作日


                    </td>
                    <td>混合</td>
                    <td><input type="text" name="D0fixedRate_work">固定值</td>
                    <td><input type="text" name="D0percentRate_work">%</td>
                </tr>
                <tr>
                    <td>
                        <input type="checkbox" name="D0withdrawBankName[]" id="WITHDRAW_WEEKDAY" value="WITHDRAW_WEEKDAY">非工作日
                    </td>
                    <td>混合</td>
                    <td><input type="text" name="D0fixedRate_week">固定值</td>
                    <td><input type="text" name="D0percentRate_week">%</td>

                </tr>
            </table>
        </div>

        </table>

        <div id="WITHDRAW_D1_PAY" class="close">
            <span style="background: #6BBE18;margin: 0 0 30px 0;">D1提现</span>
            <table>
                <tr>
                    <th>提现产品费率名称</th>
                    <th>费率类型</th>
                    <th>固定费率</th>
                    <th>比例费率</th>
                </tr>
                <tr>
                    <td>
                        <input type="checkbox" name="D1withdrawBankName[]" id="D1WITHDRAW_WORKDAY" value="WITHDRAW_WORKDAY">工作日


                    </td>
                    <td>混合</td>
                    <td><input type="text" name="D1fixedRate_work">固定值</td>
                    <td><input type="text" name="D1percentRate_work">%</td>
                </tr>
                <tr>
                    <td>
                        <input type="checkbox" name="D1withdrawBankName[]" id="D1WITHDRAW_WEEKDAY" value="WITHDRAW_WEEKDAY">非工作日
                    </td>
                    <td>混合</td>
                    <td><input type="text" name="D1fixedRate_week">固定值</td>
                    <td><input type="text" name="D1percentRate_week">%</td>

                </tr>
            </table>
        </div>

    </div>
    </table>
    </div>
    <div style="border: none;"><span><input type="submit" value="点击生成" onclick="submit"></span></div>
</form>
</body>
</html>